package com.i2863.receipt.dao;

import com.i2863.receipt.entity.Account;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by Administrator on 2018/6/8.
 */
@Repository
public interface AccountRepository extends JpaRepository<Account,Integer>,JpaSpecificationExecutor<Account>{

    /**
     * 按用户名查询
     * @param username
     * @return
     */
    Account findByUsername(String username);
}
